package com.tale.springbootatm.dao;

import com.tale.springbootatm.entity.PasswordError;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * author: 蔡奇峰
 * date: 2020/4/12 17:09
 * @Version V1.0
 **/
@Repository
public interface PasswordErrorRep extends JpaRepository<PasswordError, Long> {

    /**
     * 返回改卡号的密码错误次数
     * @param bankCard
     * @return
     */
    int countByBankCard(long bankCard);
}
